<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>会员登录</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=1920,user-scalable=no">
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="author" content="wp">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0"/>
    <meta name="keywords" content="登录地址,教育会员注册">
    <meta name="description" content="会员登录系统，注册会员享受优质视频课程。">
    <!-- <link rel="shortcut icon" type="image/x-icon" href="/static/img/favicon.ico"> -->
    <link rel="stylesheet" href="/public/css/normalize.css" type="text/css">
    <link rel="stylesheet" href="/public/css/layui.css" type="text/css">
    <link rel="stylesheet" href="/public/css/reset.css" type="text/css">
    <link rel="stylesheet" href="/public/css/2019register.css" type="text/css">
    <script src="/public/js/jquery-1.11.3.min.js"></script>
    <script src="/public/js/layui.js"></script>
    <script src="/public/js/swiper.min.js"></script>
    <script src="/public/js/tcaptcha.js"></script>
</head>
<body>

<div class="head">
        <div class="head_main">
            <a href="/" class="back_home">返回首页</a>
        </div>
    </div>
<div class="banner" style="background:#1252b4">
    <div class="banner_main" style="margin-top: 60px;">
        <% if(login){%>
        <div class="login_wrap" style="display:block">
            <div class="menu_login">
                <!-- <div class="scan_login">扫码登录</div> -->
                <div class="account_login check">密码登录</div>
            </div>
            <div class="account_wrap list">
                <form class="layui-form">
                    <div class="input_item backnput1">
                        <input type="text" id="mobileid" name="mobile" placeholder="请输入手机号" autocomplete="off" autocapitalize="off" autocorrect="off">
                    </div>
                    <div class="input_item backnput2">
                        <input type="password" id="passwordid" name="password" placeholder="请输入密码" autocomplete="off" autocapitalize="off" autocorrect="off">
                    </div>
                    <input type="text" name="do" value="" hidden="hidden">
                    <input type="hidden" name="remlogin" value="" id='remlogin1'>
                </form>

                <a href="javascript:;" id="loginSubmit">立即登录</a>
                <div class="row_item">
                    <!-- <div class="left">
                        <input type="checkbox" class="param" id="remlogin" value="">
                        <label for="remlogin">记录我的登录状态</label>
                    
                    </div> -->
                    <a href="/register" class="registerSubmit1">免费注册</a>
                </div>
            </div>
        </div>
        <%}else{%>
        <div class="reg_wrap" style="display:block;">
            <div class="regist-content " data-id="registerForm">
                <div class="b-title"><h2>用户注册</h2></div>
                <div class="ct-inner">
                    <div class="tab">
                        <form id="myform">
                            <div class="regist-form" data-formtype="mail">
                                <ul class="form-list"></ul>
                                <ul class="form-list">
                                    <li>
                                        <div class="form-input">
                                            <div class="fm-dropdown" data-id="countryCode" data-country-name="CN" data-country-code="86">
                                                <label class="input-tips J-placeholder" style="display: none;">手机号码</label>
                                                <input type="text" class="input-mobile qc-log-input-text" name="username" placeholder="手机号码" id="phoneInput" style="padding-left: 10px" now="0"></div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="form-input">
                                            <div class="form-unit">
                                                <label class="input-tips J-placeholder" style="display: none;">密码</label>
                                                <input type="password" class="qc-log-input-text lg" name="password" placeholder="密码" id="passwordInput"></div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="form-input">
                                            <div class="form-unit">
                                                <label class="input-tips J-placeholder" style="display: none;">确认密码</label>
                                                <input type="password" class="qc-log-input-text lg" name="agapassword" placeholder="确认密码" id="confirmPasswordInput"></div>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                            <div class="op-btn">
                                <button type="button" class="qc-log-btn lg" id="commit">提交</button>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="regist" style="margin-top: 0">
                    <p class="tag-line">已有账号？
                        <a href="/login" class="link">立即登录</a></p>
                </div>
            </div>
        </div>
        <%}%>
    </div>
</div>
<!--底部-->
<div class="footer">
    <div class="footermain head_main">
        <p><a href="">xxxxxx</a>  丨 <a href="">xxxxxxxxxxxxxxx</a>  丨 <a href="">xxxxxxxxxxxxxxxxxx</a>  丨 <a href="">xxxxxxxxxxxxxxxxxxxxxxx</a>  丨 <a
                href="">xxxxxx</a>  丨 <a href="">xxxxxx</a></p>
        <p class="footerleft">xxxxxxxxxxxxxxxxxxx</p>
    </div>
</div>
<script src="js/zjh-gaibanjs.js"></script>
<script src="js/zjh-gaibanjs1.js"></script>
<script>
    $('#commit').click(function(){
        if($('#phoneInput').val()===''){
            alert('手机号不能为空！')
            return
        }
        if($('#passwordInput').val()===''){
            alert('密码不能为空！')
            return
        }
        if($('#passwordInput').val()===''){
            alert('密码不能为空！')
            return
        }
        if($('#passwordInput').val()!==$('#passwordInput').val()){
            alert('密码不一致！')
            return
        }
        $.post('/zhuce',{phone:$('#phoneInput').val(),password:$('#passwordInput').val()},function(data){
            if(data.code===0){
                alert('注册成功去登录')
                window.location.href="/login"
            }
        })
    })
    $('#loginSubmit').click(function(){
        if($('#mobileid').val()===''){
            alert('手机号不能为空')
            return
        }
        if($('#passwordid').val()===''){
            alert('密码不能为空')
            return
        }
        $.post('/denglu',{name:$('#mobileid').val(),password:$('#passwordid').val()},function(data){
            if(data.code===0){
                window.location.href="/"
            }else{
                alert(data.msg)
            }
        })
    })
</script>
    
<!--密码找回操作结束-->
</body>
</html>